package com.damieoa.damieoa.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.damieoa.damieoa.pojo.Department;
import com.damieoa.damieoa.pojo.Staff;
import org.springframework.stereotype.Component;

import java.util.List;


@Component
public interface DepartmentMapper extends BaseMapper<Department> {

    //查询部门员工
    List<Staff> queryDepartmentStaff(Department department);

    //删除部门
    void deleteDepartment(Department department);

    //根据部门id获取部门信息
    Department getDepartmentById(Department department);

    //修改部门信息
    void updateDepartment(Department department);

    //查询部门删除员工
    void deleteDepartmentStaff(Staff staff);
}
